//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package ex6;

import inet.networklayer.autorouting.FlatNetworkConfigurator;
import inet.nodes.ethernet.EtherSwitch;
import inet.nodes.inet.Router;
import inet.nodes.inet.StandardHost;
import inet.nodes.wireless.WirelessAPWithEthSimplified;
import inet.nodes.wireless.WirelessHostSimplified;
import inet.world.ChannelControl;
import ned.DatarateChannel;


network Wlan
{
    @display("bgb=421,227");
    submodules:
        accessPoint: WirelessAPWithEthSimplified {
            @display("p=81,131");
        }
        StationA: WirelessHostSimplified {
            @display("p=81,60");
        }
        StationB: StandardHost {
            @display("p=343,132");
        }
        channelControl: ChannelControl {
            @display("p=312,14;is=s");
        }
        flatNetworkConfigurator: FlatNetworkConfigurator {
            @display("p=406,14");
        }
        router: Router {
            @display("p=206,132");
        }
    connections:
        accessPoint.ethg++ <--> router.ethg++;
        router.pppg++ <--> DatarateChannel <--> StationB.pppg++;
}
